package com.ganxiang.ximenhong.activity;

import android.content.Intent;
import android.os.Bundle;

import com.ganxiang.ximenhong.R;
import com.ganxiang.ximenhong.base.BaseActivity;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by csp on 2016/9/13 0013.
 */
public class StartActivity extends BaseActivity {

    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);
        TimerTask task = new TimerTask() {
            public void run() {
                startActivity(new Intent(StartActivity.this, LoginActivity.class));
                finish();
            }
        };
        Timer timer = new Timer(true);
        timer.schedule(task, 3000);
    }
}
